/*
 * app_Task.c
 *
 *  Created on: Dec 4, 2023
 *      Author: boen
 */

#include <app_task.h>

/**
* @brief Function implementing the appTask thread.
* @param argument: Not used
* @retval None
*/
void app_task(void *argument)
{
	/* USER CODE BEGIN app_Task */
	xbot.state = SYS_FLAG_STARTUP;
	osDelay(2000);
	etc_init();
	xbot.state = SYS_FLAG_IDLE;
	for(;;)
	{
		etc_polling();
		osDelay(THREAD_DELAY);
	}
	etc_deinit();
	/* USER CODE END app_Task */
}
